//
//  TMPlainTextMacro.m
//  TMPlainText
//
//  Created by Anshu Chimala on 1/1/10.
//  Copyright 2010 Home. All rights reserved.
//

#import "TMPlainTextMacro.h"


@implementation TMPlainTextMacro
@synthesize delegate = _delegate;

- (NSString *)title {
	return @"Convert to Plain Text";
}

- (NSString *)author {
	return @"Anshu Chimala";
}

- (NSString *)description {
	return @"Gets rid of any rich text formatting.";
}

- (void)processText:(NSString *)text {
	text = [NSString stringWithString:text]; //lol
	_delegate.shouldPasteAfterwards = YES;
	[_delegate macro:self didProcessTextWithResult:text];
}

- (NSString *)beforeText {
	return @"Text that includes bold, italics, different fonts/font sizes, colors, etc.";
}

- (NSString *)afterText {
	return @"Simple, plain text.";
}

@end
